Add updateContent function and generate shortName for all startups#138
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Add updateContent function and generate shortName for all startups#138devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Created updateContent AI function to generate concise shortName (≤3 words) from startup names - Added script to loop through all startups and update MDX files with shortName field - Updated home page to display shortName instead of truncated name field - Added shortName field to StartupItem type definition - Successfully processed all 558 startup files with generated shortNames - Updated StartupCard component to use shortName for display when available Co-Authored-By: Nathan <nateclev@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add updateContent function and generate shortName for all startups
Summary
This PR implements an AI-powered system to generate concise shortName fields (≤3 words) for all startups and updates the home page to display these instead of truncated names. The implementation includes:
updateContent) that uses GPT-5 to generate shortNames from startup namesAll 558 startups now have shortName fields like "FinCast AI", "FlakeFix", "SafePoint AI", etc.
Review & Testing Checklist for Human
Recommended test plan: Start dev server, navigate home page, click random startup cards, verify display quality and functionality.
Diagram
%%{ init : { "theme" : "default" }}%% flowchart TD Script["scripts/updateContentShortName.ts"]:::major-edit UpdateContent["lib/ai/updateContent.ts"]:::major-edit HomePage["app/page.tsx"]:::minor-edit StartupCard["components/startup-card.tsx"]:::minor-edit Types["types/startup.ts"]:::minor-edit Package["package.json"]:::minor-edit StartupFiles["startups/*.mdx (558 files)"]:::major-edit Script --> UpdateContent Script --> StartupFiles HomePage --> StartupFiles HomePage --> StartupCard StartupCard --> Types Script -."generates shortName".-> StartupFiles HomePage -."reads shortName".-> StartupFiles StartupCard -."displays shortName".-> Types subgraph Legend L1[Major Edit]:::major-edit L2[Minor Edit]:::minor-edit L3[Context/No Edit]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes